﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shopping.Master" AutoEventWireup="true"
    CodeBehind="ShoppingCard.aspx.cs" Inherits="E_Shop.ShoppingCard" %>
    <%@ Register Assembly="ESHOP.Controls" Namespace="EBAYVN.Controls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 
   <form id="frmShoppingCard" action="ShoppingCard.aspx">
  
    
    <div>
        <!----Title--->
        <div class="blue-left" style="width:700px">
            Manage product _ On Display
        </div>
        <div class="blue-right">
            <a class="close-blue">
                <img src="Images/Shared/icon_close_blue.gif" alt="" /></a>
        </div>
        <br />
        <!---End Title--->
        <!--Shopping Card Contend-->
        
            <input type="hidden" name="cmd" value="" />
            <input type="hidden" name="CurPage" value="1" />
            <input type="hidden" name="status" value="6" />
            <!----Content---->
           
                <asp:UpdatePanel ID="UpGrid" runat="server"  UpdateMode="Conditional">
                <ContentTemplate>

                    <cc1:Grid runat="server" UseCustomPager="false" PageSize="10" ID="gvList" CssClass="grid"
                        OnRowCommand="gvList_RowCommand" 
                        OnRowDataBound="gvList_RowDataBound" AllowSorting="True" 
                        onpageindexchanging="gvList_PageIndexChanging" Width="780px">
                        <PagerSettings FirstPageText="sản phẩm" PageButtonCount="2" />
                        <Columns>
                            <asp:TemplateField HeaderStyle-CssClass="checkbox" HeaderStyle-Width="15%" HeaderText="#">
                                <ItemTemplate>
                                    <%# Container.DataItemIndex + 1 %>
                                </ItemTemplate>
                                <ItemStyle Width="5%" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Image" HeaderStyle-Width="15%">
                                <ItemTemplate>
                                    <img src="Images/Product/<%# Eval("SANPHAM.HINHANH") %>" alt="no image " width="40px" height="40px"/>
                            
                                   
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Name Product" >
                                <ItemTemplate>
                                    
                                    <%# Eval("SANPHAM.TENSANPHAM") != null ? (Eval("SANPHAM.TENSANPHAM").ToString().Length > 15 ? Eval("SANPHAM.TENSANPHAM").ToString().Substring(0, 15) + "..." :
                                                                            Eval("SANPHAM.TENSANPHAM").ToString()) : ""
                                    %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Soluong" HeaderStyle-Width="5%">
                                <ItemTemplate>   
                                <asp:Label runat="server"><%#Eval("SOLUONG") %></asp:Label>                               
                                </ItemTemplate>
                            </asp:TemplateField>
                            
                            <asp:TemplateField HeaderText="PRICE" HeaderStyle-Width="10%">
                                <ItemTemplate>
                                    
                                    <%# Eval("GIA") != null ? Eval("GIA").ToString() : ""
                                    %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            
                            <asp:TemplateField HeaderText="Options" HeaderStyle-Width="15%">
                                <ItemTemplate>
                                    <asp:LinkButton ID="linkDelete" runat="server" CommandArgument='<%# Eval("ID") %>'
                                        CommandName="delete" CssClass="link" Text="Delete" />
                                    <asp:LinkButton ID="linkDetails" runat="server" CommandArgument='<%# Eval("ID") %>'
                                        CommandName="checkout" CssClass="link" Text="Checkout" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </cc1:Grid>

                </ContentTemplate>
            </asp:UpdatePanel>

            <!--End Conten--->
            <div class="pagenav">
                <span class="current">1</span>
            </div>
           
        <!--end Shopping contend--->
    </div>
    </form>

</asp:Content>
